package com.yanming.demo.core.response;

import lombok.Data;

import java.util.List;

@Data
public class RestResultElementui<T> extends RestResultBase{

    private long count;
    private int currentPage;
    private int pageSize;
    private List<T> data;


    public RestResultElementui(int code, String msg) {
        super(code, msg);
    }

    public RestResultElementui(int curr,int limit, long count, List<T> data) {
        super(0, "成功");
        this.currentPage=currentPage;
        this.pageSize=pageSize;
        this.count = count;
        this.data = data;
    }


    public RestResultElementui(int curr,int limit, long count) {
        super(0, "成功");
        this.currentPage=currentPage;
        this.pageSize=pageSize;
        this.count = count;

    }


}
